<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){alert(data);
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{
			return false;
		}
	}
  </script>
   <h1><a href="{:U('index')}">返回列表</a></h1>
    <form class="checkoutform" action="{:U('update')}" method="post"><input name="id" type="hidden" id="id" value="{$info.id}" />
    
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="right">标题</td>
          <td><label for="title"></label>
            <input name="title" type="text" id="title" value="{$info.title}" size="70" /></td>
        </tr>
        <if condition="isset($_SESSION[C('ADMIN_AUTH_KEY')])">
       <tr>
         <td align="right">系统</td>
         <td><input <eq name="info['is_system']" value="1">checked="checked"</eq> type="checkbox" name="is_system" value="1" /></td>
       </tr>
       </if>
        <tr>
          <td align="right">共享</td>
          <td><p>
            <label>
              <input <eq name="info['is_share']" value="1">checked="checked"</eq> type="radio" name="is_share" value="1" id="is_share_0" />
              是</label>
            <label>
              <input <eq name="info['is_share']" value="0">checked="checked"</eq> name="is_share" type="radio" id="is_share_1" value="0" checked="checked" />
              否</label>
          </p></td>
        </tr>
      
      </if>
        <tr><td colspan="2" align="center"><button type="submit">提交</button></td>
        </tr>
      </table>
    </form>
  </div>
  <div class="clear"></div>
</div>
</body></html>